package com.augurit.wf.mgmt.web.form;

import java.util.Date;

import com.augurit.common.base.form.BaseForm;

/**
 * 流程版本描述
 */
public class WfProcessVersionForm extends BaseForm {
	
	private String version;		//版本号
	private String cmp;			//创建人
	private Date cdt;			//创建时间
	private String eemp;		//修改人
	private Date edt;			//修改时间
	private String memo;		//备注
	
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public String getCmp() {
		return cmp;
	}
	public void setCmp(String cmp) {
		this.cmp = cmp;
	}
	public Date getCdt() {
		return cdt;
	}
	public void setCdt(Date cdt) {
		this.cdt = cdt;
	}
	public String getEemp() {
		return eemp;
	}
	public void setEemp(String eemp) {
		this.eemp = eemp;
	}
	public Date getEdt() {
		return edt;
	}
	public void setEdt(Date edt) {
		this.edt = edt;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	
	public static String formatVersion(int version){
		return String.format("V%2d", version);
	}
	
	public static String formatToTheLatestVersion(int version){
		return String.format("V%2d <font color='red'>*</font>", version);
	}
}
